<%-- 
    Document   : enterSchedule
    Created on : May 4, 2012, 5:04:55 AM
    Author     : prateekpatil
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="java.sql.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="cs425proj.model.*"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script >
                    function showTheaters() {
                             
                       document.getElementById('kimat').innerHTML= (document.getElementById('seats').value)*12; 
                      }</script>
    </head>
    <body>
        <table align="center">
            <thead>
                <tr>
                    <th><h1>CS 425 Project </h1></th>
                </tr>
            </thead>
        </table>
        <table border="1" width="900"  align="center" >
             <tbody>
                <tr>
                    <td width="450"  border="1">  
                         <%
        movieDetail mobj = new movieDetail();
       %>"<select name='movie' id='movie'><option value='-1'>Movie</option>
       <% ArrayList<String> mlist = mobj.getMoviesList();
        for(int i=0;i<mlist.size();i++){
        %><option value='<%=mlist.get(i).split(" ")%>'><%=mlist.get(i)%></option>";
         <%      }%>
        </select>

                    </td>
                    <td width="450"  border="1">
                      <% theaterDetail tobj = new theaterDetail();%>
        <select name='theater' id='theater'><option value='-1'>Theater</option>
       <% ArrayList<String> tlist = tobj.getTheaterList();%>
        <% for(int j=0;j<tlist.size();j++){
        %><option value='<%=tlist.get(j).split(" ")%>'><%=tlist.get(j)%></option>"
              <% }%>
        </select>  
        
                          
                        
                    </td>
                </tr>
             </tbody>
        </table>
        
        
        
        
        
        
        
    </body>
</html>
